package com.sharepics.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.bind.support.SessionStatus;

import com.sharepics.bean.XMLPicture;


@Controller
public class PersonForm {



    @RequestMapping(value = "/testws",method = RequestMethod.GET)
    @ResponseBody
    public  XMLPicture setupForm() {
    	//Person person = new Person();
    	//person.setName("FABIEN");
        //model.addAttribute("person", person);
    	XMLPicture p = new XMLPicture();
    	p.setName("TATA");
        //return "/jsp/personForm";
    	return p;
    }
}
